$(document).ready(function(){
    $('#txtSearch').keyup(function(){
        var data = $('#txtSearch').val();
        var http = $.ajax({
            url: "search.php",
            type: "get",
            dataType: "html",
            data: "search="+data,
            beforeSend: function(){
                $("#show").html('<img src="images/loading.gif" style="margin: 0px auto; display:block;" />');
            }
        });
        http.done(function(result) {
            if (result != 'none') {
                $('#show').html(result);
            } else {
                $('#show').html('Khong thay input');
                stop();
            }
            
        })
    });
    $('#btnSubmit').click(function() {
        return false;
    })
});

